//
//  VisitView.m
//  OCWeiBo
//
//  Created by 江潘 on 15/6/25.
//  Copyright © 2015年 江潘. All rights reserved.
//

#import "VisitView.h"
@interface VisitView()
@property (nonatomic,strong) UIImageView *iconView;
@property (nonatomic,strong) UIImageView *homeView;
@property (nonatomic,strong) UIImageView *maskView;
@property (nonatomic,strong) UIButton *registerBtn;
@property (nonatomic,strong) UIButton *loginBtn;
@property (nonatomic,strong) UILabel *messageLabel;
@end

@implementation VisitView

- (instancetype)init{

    if (self = [super init]) {
        
        self.backgroundColor = [UIColor whiteColor];
        
        [self setupVisitViewInfo];
    }
    
    return self;
}

- (void)setupVisitViewInfo{
    
    [self addSubview:self.iconView];
    [self addSubview:self.homeView];
    [self addSubview:self.maskView];
    [self addSubview:self.messageLabel];
    [self addSubview:self.registerBtn];
    [self addSubview:self.loginBtn];
}
- (UIImageView *)iconView{
    if (_iconView == nil) {
        
        _iconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"visitordiscover_feed_image_smallicon"]];
    }
    return _iconView;
}
- (UIImageView *)homeView{
    if (_homeView == nil) {
        
        _homeView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"visitordiscover_feed_image_house"]];
    }
    return _homeView;
}
- (UIImageView *)maskView{
    if (_maskView == nil) {
        
        _maskView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"visitordiscover_feed_mask_smallicon"]];
    }
    return _maskView;
}
- (UIButton *)registerBtn{
    if (_registerBtn == nil) {
        [_registerBtn setBackgroundImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
        [_registerBtn setBackgroundImage:[UIImage imageNamed:@""] forState:UIControlStateHighlighted];
    }
    return _registerBtn;
}
-(UIButton *)loginBtn{
    if (_loginBtn == nil) {
        [_loginBtn setBackgroundImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
        [_loginBtn setBackgroundImage:[UIImage imageNamed:@""] forState:UIControlStateHighlighted];
    }
    return _loginBtn;
}
- (UILabel *)messageLabel{
    if (_messageLabel == nil) {
        
    }
    return _messageLabel;
}

@end
